home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / mac / Explorer / Ex_Right.dxr / 00032.ls < prev    next >
Encoding:
Text File  |  1998-07-22  |  236 b   |  10 lines

  1. on enterFrame
  2.   global a, b, c
  3.   put a * a into field "A2"
  4.   put b * b into field "B2"
  5.   put (a * a) + (b * b) into field "C2"
  6.   set the floatPrecision to 2
  7.   set c to float(sqrt(float(a * a) + float(b * b)))
  8.   put c into field "C"
  9. end
  10.